package org.orange.feign.simulate.simple.feign.core.context;

import lombok.Builder;
import org.springframework.cloud.context.named.NamedContextFactory;

/**
 * @author yuhongtai
 * 配置类
 */
@Builder
public class SimpleFeignSpecification implements NamedContextFactory.Specification {

    private final String name;

    private final Class<?>[] configurations;

    public SimpleFeignSpecification(String name, Class<?>[] configurations){
        this.name = name;
        this.configurations = configurations;
    }


    @Override
    public String getName() {
        return name;
    }

    @Override
    public Class<?>[] getConfiguration() {
        return configurations;
    }
}
